package cn.ulc.store.dao;
import cn.ulc.common.constant.enums.AvailableStatus;
import cn.ulc.store.entity.*;

import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;

import java.util.List;

/*
* Notice
* gen by Jin mapper 2019-06-04
*/
@SqlResource("notice")
public interface NoticeDao extends BaseDao<Notice> {

  PageQuery findListPage(PageQuery pageQuery);
  /**
   * 读取公告
   * @param companyId
   * @param location
   * @param status
   * @return
   */
  List<Notice> findByCompany(Long companyId, String location, AvailableStatus status);

  List<Notice> findByCategoryId(Long companyId, Long category,String location, AvailableStatus status);
}
